#!/usr/bin/env python3
# -*- coding: utf-8 -*-
'教程'
# 1. pip3.6 install django==1.11
# 2. django-admin startproject myblog  创建myblog项目
# 3. python3.6 manage.py startapp blog 创建blog应用(记得添加到setting.py)
# 4. python3.6 manage.py runserver 8000   打开服务8000端口(默认8000)
# 5. pip3.6 install mysqlclient   安装mysql驱动
# 6. python3.6 manage.py makemigrations blog   准备迁移blog应用的数据(默认整个项目)
# 7. python3.6 manage.py migrate    迁移数据到数据库
# 8. python3.6 manage.py sqlmigrate blog 0001   查看sql语句
# 9. python3.6 manage.py createsuperuser   创建超级用户 admin admin123456
#    http://127.0.0.1:8000/admin/
# 10. python3.6 manage.py shell  进入djiago shell